<?php
class Admin_IndexController extends Zend_Controller_Action
{
	public function init()
	{
		if(!Zend_Auth::getInstance()->hasIdentity()){
			$this->_redirect('admin/login');
		}
	}
	
	public function indexAction()
	{
		$usuario = Zend_Auth::getInstance()->getIdentity();
		//echo $usuario->id_usuario; exit;
		
		$this->view->assign("nome", $usuario->nome);
		$this->view->assign("id", $usuario->id_usuario);
	}
}